﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
namespace KazooUI
{
    public partial class Form4 : Form
    {
        public Thread iewindowproc;
        public System.Windows.Forms.Timer t;
        public Form4()
        {
            InitializeComponent();
            iewindowproc = new Thread(new ThreadStart(iewindow));
            t = new System.Windows.Forms.Timer();
            t.Interval = 7000;
            t.Tick += new EventHandler(t_Tick);
            t.Start();

        }
        public void iewindow()
        {
            System.Diagnostics.Process.Start("http://home.ca.rr.com/torabisystems/");
        }
        //protected override void OnPaint(PaintEventArgs e)
        //{
        //    Rectangle r = new Rectangle(1, 211, 100, 10);
        //    System.Drawing.Drawing2D.LinearGradientBrush f = new System.Drawing.Drawing2D.LinearGradientBrush(r, Color.Red, Color.Black,System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
        //    e.Graphics.DrawRectangle(new Pen(Color.Black),r);
        //    e.Graphics.FillRectangle(f, r);
        //}
        void t_Tick(object sender, EventArgs e)
        {
            Close();
        }

      
        private void pictureBox2_Click_1(object sender, EventArgs e)
        {
            t.Stop();
            Close();
        }

        private void Form4_Load(object sender, EventArgs e)
        {
            
            
        }

        private void pictureBox3_Click(object sender, EventArgs e)
        {
            iewindowproc.Start();
        }
    }
}
